
// 用来定义与 Topic 有关的 路由记录
const routes = [
    {
        path: '/topic/list',
        name: 'topic-list',
        alias: '/list' ,
        components: {
            'header': () => import('@/views/HeaderView.vue'),
            'default': () => import('@/components/TopicList.vue'),
            'footer': () => import('@/views/FooterView.vue')
        },
        meta: {
            title: '话题列表'
        }
    },
    {
        path: '/topic/detail/:id',
        name: 'topic-detail' ,
        alias: '/detail/:id',
        components: {
            'header': () => import('@/views/HeaderView.vue'),
            'default': () => import('@/components/TopicDetail.vue'),
            'footer': () => import('@/views/FooterView.vue')
        },
        meta: {
            title: '话题详情'
        }
    }
];

// 默认导出
export default routes ;